﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TB_CS.Plug
{
    public partial class Setting_User : Form
    {
        public Setting_User()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text=="")
            {
                MessageBox.Show("请输入商家编码");
            }
            else if(textBox2.Text=="")
            {
                MessageBox.Show("请输入微信编码");
            }
            else
            {
                Class.SysInfo.INSERT_VALUE("Seller_Nick", textBox1.Text.Trim().ToString());
                Class.SysInfo.INSERT_VALUE("WX_User", textBox2.Text.Trim().ToString());
                MessageBox.Show("更新完毕，程序即将重新打开", "Success");
                Application.Restart();
            }
        }
    }
}
